package com.jinzecloud.fiction.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinzecloud.fiction.utils.PageUtils;
import com.jinzecloud.fiction.utils.Query;

import com.jinzecloud.fiction.mapper.TbReadMapper;
import com.jinzecloud.fiction.bean.TbRead;
import com.jinzecloud.fiction.service.TbReadService;


@Service("tbReadService")
public class TbReadServiceImpl extends ServiceImpl<TbReadMapper, TbRead> implements TbReadService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbRead> page = this.page(
                new Query<TbRead>().getPage(params),
                new QueryWrapper<TbRead>()
        );

        return new PageUtils(page);
    }

}